package com.guigu.controller.lq.service.impl;

import com.guigu.controller.lq.mapper.LqYdfaMapper;
import com.guigu.controller.lq.mapper.LqYsfaMapper;
import com.guigu.controller.lq.pojo.LqYsfa;
import com.guigu.controller.lq.service.LqYsfaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LqYsfaServiceimpl implements LqYsfaService {
    @Autowired
    LqYsfaMapper lqYsfaMapper;
    public int tjys(LqYsfa lqYsfa) {
        return lqYsfaMapper.insert(lqYsfa);
    }

    public List<LqYsfa> selys(Integer modid) {
        return lqYsfaMapper.selys(modid);
    }

    public int delys(Integer modid) {
        return lqYsfaMapper.deleteByPrimaryKey(modid);
    }

    public int upys(LqYsfa lqYsfa) {
        return lqYsfaMapper.updateByPrimaryKey(lqYsfa);
    }
}
